home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC & Mediji 1998 February
/
PCM_9802.iso
/
programi
/
director
/
data.z
/
Behavior Library.cst
/
00041_Script_Video Control
< prev
next >
Wrap
Text File
|
1997-05-09
|
1KB
|
50 lines
-- Video Controller Commands
-- a control
property videoSprite -- the sprite number that is getting controlled
property videoCommand -- the command to be issued
on InitVidControl me
case ( the VideoCommand of me ) of:
#Play:
set the movieRate of sprite the VideoSprite of me = 1
#Pause:
set the movieRate of sprite the VideoSprite of me = 0
#Stop:
set the movieRate of sprite the VideoSprite of me = 0
set the movietime of sprite the VideoSprite of me = 0
#Rewind:
set the movietime of sprite the VideoSprite of me = 0
end case
end
on mouseUp me
initVidControl me
end
---
on getPropertyDescriptionList
set p_list = [ ¼
#videoCommand: [ #comment: "Command:", ¼
#format: #symbol, ¼
#range: [ #Play, #Pause, #Stop, #Rewind ], ¼
#default: #Play ], ¼
#videoSprite: [ #comment: "Video Sprite Channel:", ¼
#format: #integer, ¼
#default: 1 ] ¼
]
return p_list
end
on getBehaviorDescription
return ¼
"Provides Play, Pause, Stop, or Rewind controls for a digital video sprite." & RETURN & ¼
"PARAMETERS:" & RETURN & ¼
"ò Command - Choose the video playback command to invoke ( Play, Pause, Stop, Rewind )." & RETURN & ¼
"ò Sprite - Enter the number of sprite channel in which video is displayed."
end